package com.aigou.admin.aigouspringboot.service;

import com.aigou.admin.aigouspringboot.entity.ReceivingAddress;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ReceivingAddressService {
    List<ReceivingAddress> selectAll();

    PageInfo<ReceivingAddress> selectReceivingAddressListByPage(Integer current);

    int deleteById(String id, String token);

    ReceivingAddress selectById(String id);

    int edit(ReceivingAddress receivingAddress);

    int save(ReceivingAddress receivingAddress);


    List<ReceivingAddress> selectByUserId(String userId);

    int updateDefaultAddresses(ReceivingAddress receivingAddress);

    int insertAddress(ReceivingAddress receivingAddress);

    int updateisDefaultAddresses(ReceivingAddress receivingAddress);

    void updateIsDefault();
}
